const http = uni.$u.http
export const httpAddress = 'http://xdd.itv6.cn'
// post请求 登录
export const getIndex = (params, config = {}) => http.get('/api/index', params, config)
// 获取验证码 
export const sendCode = (params, ) => http.post('/api/sms/send ', params)
// 检测验证码
export const checkCode = (params) => http.post('/api/sms/check ', params)
// 详情页 
export const getDetail = (params, config = {}) => http.post('/api/index/tmall', params, config)
// 获取新闻详情 
export const getNewsDetail = (params, config = {}) => http.post('/api/index/newsdetail', params, config)
// 新闻列表
export const getNewsList = (params, config = {}) => http.get('/api/index/newslist', params, config)
// 地区列表
export const getArea = (params, config = {}) => http.get('/api/index/area', params, config)
// 资质分类列表 
export const getCate = (params, config = {}) => http.post('/api/index/category', params, config)
// 资质列表 /api/index/zizhi
export const getZiZhiList = (params, config = {}) => http.post('/api/index/zizhi', params, config)
// 登录 /api/user/getWxMiniProgramSessionKey
export const loginOne = (params, config = {}) => http.post('/api/user/getWxMiniProgramSessionKey', params, config)
// 绑定手机号
export const bindPhone = (params, config = {}) => http.post('/api/user/min_login', params, config)
// 获取用户资料 
export const getUser = (params, config = {}) => http.post('/api/user/getuserinfo', params, config)
// 钱包充值
export const walletRecharge = (params) => http.post('/api/user/gateway', params)
// 下单 
export const createOrder = (params) => http.post('/api/order/create', params)
// 订单列表  /api/order/getlist
export const getOrder = (params) => http.post('/api/order/getlist', params)
// 支付尾款 /api/order/payweikuan
export const payWeiKuan = (params) => http.post('/api/order/payweikuan', params)
// 获取合同链接 /api/qiandun/getContractOperate
export const getContract = (params) => http.post('/api/qiandun/getContractOperate', params)
// 实名认证 /api/qiandun/psnAuth
export const realName = (params) => http.post('/api/qiandun/psnAuth', params)
// 首页表单提交
export const indexFormPost = (params) => http.post('/api/user/liuyan', params)
// 收获地址列表 
export const addressList = (params) => http.post('/api/user/address', params)
// 添加收货地址 
export const addAddres = (params) => http.post('/api/user/add_address', params)
// 操作地址  
export const handleAddress = (params) => http.post('/api/user/setaddress', params)